//
// Created by 顾蛟 on 2020/7/4.
//

#include "FileUtil.h"

string readFileIntoString(char *fileName) {
    ifstream shaderFile(fileName);
    ostringstream buf;
    char ch;
    while (buf && shaderFile.get(ch)) {
        buf.put(ch);
    }
    return buf.str();
}



